// #[macro_use]
// extern crate log;
// extern crate pretty_env_logger;
use anyhow::Result;
use log::info;

mod as000001;
mod as000002;

fn main() -> Result<()> {
    std::env::set_var("RUST_LOG", "trace");
    pretty_env_logger::init_timed();

    info!("{:?}: as000001 begin", std::thread::current().id());
    smol::block_on(as000001::run());
    info!("{:?}: as000001 end", std::thread::current().id());

    info!("{:?}: as000002 begin", std::thread::current().id());
    as000002::run()?;
    info!("{:?}: as000002 end", std::thread::current().id());

    Ok(())
}
